package com.canaan.business.domain.quality;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.canaan.common.annotation.Excel;
import com.canaan.common.annotation.TableName;
import com.canaan.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 出货检导出对象
 *
 * @author 
 * @date 2023-02-07
 */
@ApiModel(description = "wms_product_quality_main_task")
@TableName("wms_product_quality_main_task")
public class OqcQualityMainTask extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    @ApiModelProperty("${comment}")
    private Long id;

    /** 编码 */
    @Excel(name = "质检任务号")
    @ApiModelProperty("编码")
    private String no;

    /** 物料编码 */
    @Excel(name = "物料编号")
    @ApiModelProperty("物料编码")
    private String productNo;

    /** 物料名称 */
    @Excel(name = "物料名称")
    @ApiModelProperty("物料名称")
    private String productName;

    /** 质检任务类型：来料检、库存检 */
    @ApiModelProperty("质检任务类型：来料检、库存检")
    private String qualityType;

    /** 状态:待检、检验中、已完成 */
    @Excel(name = "状态")
    @ApiModelProperty("状态:待检、检验中、已完成")
    private String status;

    /** 总数量 */
    @ApiModelProperty("总数量")
    private BigDecimal totalQuantity;

    /** 检验数量 */
    @Excel(name = "检验数量")
    @ApiModelProperty("检验数量")
    private BigDecimal quantity;

    /** 已检验数量 */
    @ApiModelProperty("已检验数量")
    private BigDecimal inspectedQuantity;

    /** 检验结果 */
    @Excel(name = "检验结果")
    @ApiModelProperty("检验结果")
    private String qualityResult;

    /** 处理方式:让步接收、部分接收、退货 */
    @Excel(name = "处理方式")
    @ApiModelProperty("处理方式:让步接收、部分接收、退货")
    private String processMode;

    /** 检验完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "检验完成时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("检验完成时间")
    private Date finishTime;


    /** 检验员姓名 */
    @Excel(name = "检验员")
    @ApiModelProperty("检验员姓名")
    private String qualityUserName;

    /** 仓库编号 */
    @ApiModelProperty("仓库编号")
    private String storehouseNo;

    /** 仓库名称 */
    @ApiModelProperty("仓库名称")
    @Excel(name = "仓库")
    private String storehouseName;

    /** 库位编号 */
    @ApiModelProperty("库位编号")
    private String storehouseLocationNo;

    /** 库位名称 */
    @ApiModelProperty("库位名称")
    @Excel(name = "库位")
    private String storehouseLocationName;

    /** 来源单号 */
    @Excel(name = "来源单号")
    @ApiModelProperty("来源单号")
    private String sourceNo;



    /** 创建人 */
    @Excel(name = "创建人")
    @ApiModelProperty("创建人")
    private String createBy;


    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("创建时间")
    private Date createTime;

    /** 最后更新人 */
    @Excel(name = "最后更新人")
    @ApiModelProperty("最后更新人")
    private String updateBy;

    /** 最后更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("最后更新时间")
    private Date updateTime;

    /** $column.columnComment */
    @ApiModelProperty("${comment}")
    private Long sort;

    /** $column.columnComment */
    @ApiModelProperty("${comment}")
    private String delFlag;






    public BigDecimal getTotalQuantity() {
        return totalQuantity;
    }

    public void setTotalQuantity(BigDecimal totalQuantity) {
        this.totalQuantity = totalQuantity;
    }

    public BigDecimal getInspectedQuantity() {
        return inspectedQuantity;
    }

    public void setInspectedQuantity(BigDecimal inspectedQuantity) {
        this.inspectedQuantity = inspectedQuantity;
    }

    @Override
    public String getCreateBy() {
        return createBy;
    }

    @Override
    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String getUpdateBy() {
        return updateBy;
    }

    @Override
    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    @Override
    public Date getUpdateTime() {
        return updateTime;
    }

    @Override
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setNo(String no)
    {
        this.no = no;
    }

    public String getNo()
    {
        return no;
    }
    public void setProductNo(String productNo)
    {
        this.productNo = productNo;
    }

    public String getProductNo()
    {
        return productNo;
    }
    public void setProductName(String productName)
    {
        this.productName = productName;
    }

    public String getProductName()
    {
        return productName;
    }
    public void setQualityType(String qualityType)
    {
        this.qualityType = qualityType;
    }

    public String getQualityType()
    {
        return qualityType;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setQuantity(BigDecimal quantity)
    {
        this.quantity = quantity;
    }

    public BigDecimal getQuantity()
    {
        return quantity;
    }
    public void setQualityResult(String qualityResult)
    {
        this.qualityResult = qualityResult;
    }

    public String getQualityResult()
    {
        return qualityResult;
    }
    public void setProcessMode(String processMode)
    {
        this.processMode = processMode;
    }

    public String getProcessMode()
    {
        return processMode;
    }
    public void setFinishTime(Date finishTime)
    {
        this.finishTime = finishTime;
    }

    public Date getFinishTime()
    {
        return finishTime;
    }
    public void setSort(Long sort)
    {
        this.sort = sort;
    }

    public Long getSort()
    {
        return sort;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setQualityUserName(String qualityUserName)
    {
        this.qualityUserName = qualityUserName;
    }

    public String getQualityUserName()
    {
        return qualityUserName;
    }
    public void setStorehouseNo(String storehouseNo)
    {
        this.storehouseNo = storehouseNo;
    }

    public String getStorehouseNo()
    {
        return storehouseNo;
    }
    public void setStorehouseName(String storehouseName)
    {
        this.storehouseName = storehouseName;
    }

    public String getStorehouseName()
    {
        return storehouseName;
    }
    public void setStorehouseLocationNo(String storehouseLocationNo)
    {
        this.storehouseLocationNo = storehouseLocationNo;
    }

    public String getStorehouseLocationNo()
    {
        return storehouseLocationNo;
    }
    public void setStorehouseLocationName(String storehouseLocationName)
    {
        this.storehouseLocationName = storehouseLocationName;
    }

    public String getStorehouseLocationName()
    {
        return storehouseLocationName;
    }
    public void setSourceNo(String sourceNo)
    {
        this.sourceNo = sourceNo;
    }

    public String getSourceNo()
    {
        return sourceNo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("no", getNo())
            .append("productNo", getProductNo())
            .append("productName", getProductName())
            .append("qualityType", getQualityType())
            .append("status", getStatus())
            .append("quantity", getQuantity())
            .append("qualityResult", getQualityResult())
            .append("processMode", getProcessMode())
            .append("finishTime", getFinishTime())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("createTime", getCreateTime())
            .append("sort", getSort())
            .append("delFlag", getDelFlag())
            .append("qualityUserName", getQualityUserName())
            .append("storehouseNo", getStorehouseNo())
            .append("storehouseName", getStorehouseName())
            .append("storehouseLocationNo", getStorehouseLocationNo())
            .append("storehouseLocationName", getStorehouseLocationName())
            .append("sourceNo", getSourceNo())
            .toString();
    }
}
